# 基础镜像，自动下载
FROM openjdk:8

# 作者信息
MAINTAINER author:wusongti
MAINTAINER mail:wusongti@163.com

# 挂在主机目录/var/lib/docker/tmp与容器/tmp目录
VOLUME /tmp

ARG JAR_FILE

# 将jar包添加到容器中并更名为app.jar
ADD ${JAR_FILE} /app.jar

# 暴露端口
EXPOSE 8783

RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","/app.jar","-Djava.security.egd=file:/dev/./urandom","-c"]
